Rectangle Types

Several data types are designated to handle rectangles:

TRect

type TRect = Windows.TRect;

TRect is redeclared from Windows.h and is compatible with Delphi/Windows API calls.

TFloatRect

type TFloatRect = record
  case Integer of
    0: (Left, Top, Right, Bottom: Single);
    1: (TopLeft, BottomRight:
TFloatPoint);
end;

A rectangle with floating-point coordinates.

TFixedRect

type TFixedRect = record
  case Integer of
    0: (Left, Top, Right, Bottom:
TFixed);
    1: (TopLeft, BottomRight: TFixedPoint);
end;

A rectangle with fixed-point coordinates.

 

See Also

Creating Rectangles, Point Types, TFixed